package com.abocode.aichat.server.channel;

/**
 * all states for the channel state machine. states are visited sequential
 */
public enum ChannelState {

    /**
     *
     */
    UNCONNECTED,

    /**
     * stream opened but no start stanza processed
     */
    INITIATED,

    /**
     * plain start stanza processed, but not secured
     */
    STARTED,

    /**
     * STARTTLS processed, but not finished
     */
    ENCRYPTION_STARTED,

    /**
     * secure start stanza processed, but not authenticated
     */
    ENCRYPTED,

    /**
     * authentication has begun, but is not yet finished
     */
    //    AUTHENTICATION_STARTED,

    /**
     * authenticated
     */
    AUTHENTICATED,

    /**
     * a resource has been bound to the server
     */
    //    RESOURCE_BOUND,

    /**
     * the initial channel handshake is completed and regular stanzas are processed
     */
    //    OPEN_FOR_XMPP,

    /**
     * end stanza processed
     */
    ENDED,

    /**
     * underlying stream closed
     */
    CLOSED
}
